<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="提前还款（已确认）">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/risk/waitAdvanceRepay.html'">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form name="form1" id="advanceForm" method="post" action="/admin/risk/setAdvanceRepay.html">
                                <div class="valBox w750 h300">
                                    <div class="top">
                                        <strong>设置提前还款</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>
                                            <li>
                                                <div class="title">提前还款时间：</div>
                                                <div class="v">
                                                    <input type="text" name="advanceRepayTime" id="advanceRepayTime" value="<#if defaultDate??>${defaultDate}</#if>" onclick="change_picktime()"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">备注信息：</div>
                                                <div class="v s_writeContent">
                                                    <textarea name="advanceRemark" id="advanceRemark" placeholder="提前还款备注信息"></textarea>
                                                </div>

                                            </li>
                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="advance" />
                                            <input type="hidden"  name="borrowId" value="<#if borrowId??>${borrowId?c}</#if>" />
                                            <p style="color: red;margin-left: 253px;">请务必确保款项已100%到账，再点击确定</p>
                                            <input type="button" id="commitBtn" value="确认" class="input-button confirm" style="float: left;margin-left: 253px;margin-top: 11px;">
                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b"></div>
    <script>
        $("#commitBtn").click(function(){
            if($("#advanceRemark").val() == null || $("#advanceRemark").val()==''){
                alert("提前还款备注不能为空！");
            }else{
                $("#advanceForm").submit();
            }
        });
    </script>
    <#include "../jsPage.html">
    </body>
</html>